/*******************************************************************************
 * Copyright (c) 2009 Dop Sun.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Dop Sun - initial API and implementation
 ******************************************************************************/
package com.softao.ming.gde.internal.core.natures;

import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;

/**
 * 
 */
public final class Gde {
	/**
	 * @param project
	 * @return <code>true</code> if the project has feature; otherwise, <code>false</code>.
	 */
	public static boolean hasGdeProjectNature(IProject project) {
		try {
			return project.hasNature(GdeProject.ID);
		} catch (CoreException e) {
			e.printStackTrace();
			return false;
		}
	}

}
